package com.tr.ssocms.shiro;


import lombok.Data;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @description: 收集是用户信息还是会员信息  使用UsernamePasswordToken时重新父类的方法添加属性
 *
 * @return {@link null}
 * @author  wangxihao
 * @email wangxh0108@163.com
**/
@Data
public class CustomUsernamePasspordToken extends UsernamePasswordToken {
    //登录类型
    private String loginType;

    //构造器中调用父类构造 并添加子类构造中的属性
    public CustomUsernamePasspordToken(String username, String password, String loginType) {
        super(username, password);
        this.loginType = loginType;
    }
}
